distasteful joke

Translations
неприятная шутка
He made a distasteful joke that offended many people.
Он пошутил неприятно, что обидело многих людей.